<link rel="stylesheet" type="text/css" href="css/product.css" />
<?php
	$exec_mysql->execute("update product set view = view + 1 where id = $pro_id", 0);
	$result = $exec_mysql->execute("select * from product where id = $pro_id", 0);
	while($row = mysql_fetch_array($result))
	{
		$id = $row['id'];
		$code = $row['code'];
		$price = $row['price'];
		echo '<p class="pro-name">'.$pro_name.'</p>';
		echo '<div class="big-pic"><img src="'.$row['big_img'].'" />';
		echo '</div>';
		echo '<div class="pro-detail">';
		echo '<table>';
		echo '<tr height="30px"><td width="100">Mã sản phẩm:</td><td><b>'.$code.'</b></td></tr>';
		echo '<tr height="30px"><td>Giá:</td><td><b>'.number_format($price, 0, ',', '.').' VNĐ</b></td></tr>';
		echo '<tr height="30px"><td>Kích thước:</td><td><b>'.$row['size'].'</b></td></tr>';
		echo '<tr height="30px"><td>Chất liệu:</td><td><b>'.$row['material'].'</b></td></tr>';
		echo '<tr height="30px"><td>Nhà sản xuất:</td><td><b>'.$row['supplier'].'</b></td></tr>';
		echo '<tr height="30px"><td>Số lượt xem:</td><td><b>'.$row['view'].'</b></td></tr>';
		echo '</table>';
		echo '<p class="button booking" onclick="booking(\''.$id.'\', \''.$code.'\', \''.$pro_name.'\', \''.$price.'\')">THÊM VÀO GIỎ HÀNG</p>';
		echo '</div>';
		echo '<div class="pro-desc">'.$row['description'].'</div>';
	}
?>